package com.smyx.service.impl;

import com.smyx.bean.TestProperties;
import com.smyx.service.UserService;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    private final TestProperties testProperties;

    public UserServiceImpl(TestProperties testProperties) {
        this.testProperties = testProperties;
    }

    @Override
    public List<String> listUserNames() {
        String name = testProperties.getName();
        return Arrays.asList("user：" + name, "user");
    }
}
